package org.jeecg.modules.service.impl;

import org.jeecg.modules.mapper.DiyProjectUrgentStatusMapper;
import org.jeecg.modules.service.DiyProjectUrgentStatusService;
import org.jeecg.modules.vo.ProjectUrgentStatus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: lezi
 * @Date: 2022/06/09/14:11
 * @Description:
 */
@Service
public class DiyProjectUrgentStatusServiceImpl implements DiyProjectUrgentStatusService {
    @Autowired
    private DiyProjectUrgentStatusMapper diyProjectUrgentStatusMapper;
    @Override
    public List<ProjectUrgentStatus> queryByUserid(String userid) {
        return diyProjectUrgentStatusMapper.queryByUserid(userid);
    }
    @Override
    public int addByUseridAndProjectId(ProjectUrgentStatus projectUrgentStatus) {
        return diyProjectUrgentStatusMapper.addByUseridAndProjectId(projectUrgentStatus);
    }

    @Override
    public int updateStatus02(String userid, String projectid) {
        return diyProjectUrgentStatusMapper.updateStatus02(userid,projectid);
    }

    @Override
    public int updateStatus01(String userid, String projectid) {
        return diyProjectUrgentStatusMapper.updateStatus01(userid,projectid);
    }

    @Override
    public int deleteByuseridAndprojectid(String originator_userid,String projectid) {
        return diyProjectUrgentStatusMapper.deleteByuseridAndprojectid(originator_userid,projectid);
    }

    @Override
    public ProjectUrgentStatus queryByUseridAndProjectId(String userid, String projectid) {
        return diyProjectUrgentStatusMapper.queryByUseridAndProjectId(userid,projectid);
    }
}
